#!/bin/bash
echo "编译矩阵运算工具..."
g++ -I include -I /usr/include/eigen3 -std=c++11 src/main.cpp src/MatrixOperations.cpp -o MatrixOperations

if [ -f "MatrixOperations" ]; then
    echo "编译成功!"
    echo "运行程序..."
    ./MatrixOperations
else
    echo "编译失败!"
fi